'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller, jwt } = app;
  router.get('/', controller.home.index);
  router.get('/student/findAll', jwt, controller.student.findAll);
  router.post('/student/saveOrUpdate', controller.student.saveOrUpdate);
  router.delete('/student/deleteById', controller.student.deleteById);
  router.get('/student/pageQuery', controller.student.pageQuery);
  router.post('/user/login', controller.user.login);
};
